<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var arr=[25,16,19,12]
    arr.forEach(function(ele,i){
        console.log(ele);
        
    })
    var arr1= arr.filter(function(ele,i){
        return ele >20
    })
    console.log(arr1);

    var arr2=arr.map(function(ele,i){
        return ele+1
    })
    console.log(arr2);
    
    arr.sort(function(a,b){
        return b-a
    })
    console.log(arr);
    
    
</script>